correct comment about readElementText behavior.
authortsteven4 <tsteven4@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 28 Aug 2013 01:58:21 +0000 (01:58 +0000)
committertsteven4 <tsteven4@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 28 Aug 2013 01:58:21 +0000 (01:58 +0000)
gpsbabel/xmlgeneric.cc

index 32f5020833d079c28d69e5cb3742df4199424b80..205c3915ff09e52f7b1f4961771b2a57f0f4cd18 100644 (file)
@@ -135,7 +135,8 @@ xml_run_parser(QXmlStreamReader& reader, QString& current_tag)
       cb = xml_tbl_lookup(current_tag, cb_cdata);
       if (cb) {
         QString c = reader.readElementText(QXmlStreamReader::IncludeChildElements);
-        // readElementText eats the corresponding EndElement.
+        // readElementText advances the tokenType to QXmlStreamReader::EndElement,
+        // thus we will not process the EndElement case as we will issue a readNext first.
         // does a caller ever expect to be able to use both a cb_cdata and a
         // cb_end callback?
         cb(CSTRE(c), NULL);